/**
 * Created with CLion.
 * Description: 
 * User: loong
 * Date: 2023/12/19
 * Time: 21:06
 */

#ifndef CODSEEGMENT_DOC_H
#define CODSEEGMENT_DOC_H
#include "Node.h"

namespace Config {
    class Doc;
    using DocSPtr = std::shared_ptr<Doc>;
    using DocWPtr = std::weak_ptr<Doc>;

    class Doc
        : public Node
    {
    public:
        Doc(std::string _key, std::string _value = "");

        ~Doc() override = default;

        virtual NodeList Query(const std::string & _path);

    };

}// namespace Config

#endif//CODSEEGMENT_DOC_H
